<?php

class Application_Form_List extends Zend_Form
{

    public function init()
    {
        $this->setAttrib('id', 'frmList')
        	 ->setMethod('post');
       	
       	$this->addElement('hidden', 'id', array('label' =>'Id'));
       	
       	$this->addElement('textarea', 'descripcion', array(
       	'label' 	=> 'Descripció',
       	'filters'   => array('StringTrim'),
    	'size'		=> 60,
       	'cols'   	=> 44,
       	'rows'   	=> 5,
       	'required'  => true,
       	'validators'=> array(
                array('validator' => 'StringLength', 'options' => array(1, 256))
                )
       	));
       	
       	$this->addElement('submit', 'submit', array('label' => 'Guardar y tancar'));
    }

}

